package org.example.chatroom.demos.service;


import org.example.chatroom.demos.mapper.FriendMapper;
import org.example.chatroom.demos.model.Friend;
import org.example.chatroom.demos.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FriendService {
     @Autowired
     private FriendMapper friendMapper ;

    public List<Friend> getFriendList(Integer id) {
        return friendMapper.getFriendList(id);
    }
}
